package com.outdoor.exception;

import lombok.Getter;

/**
 * 业务异常类
 * 
 * @author OutdoorTeam
 * @date 2025-05-18
 */
@Getter
public class BusinessException extends RuntimeException {
    
    private final String errorCode;
    
    /**
     * 构造业务异常
     * 
     * @param message 错误消息
     */
    public BusinessException(String message) {
        this("BIZ_ERROR", message);
    }
    
    /**
     * 构造业务异常
     * 
     * @param errorCode 错误代码
     * @param message 错误消息
     */
    public BusinessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
} 